﻿using System.Configuration;
using CID.Execution.Support.DeploymentInitiation.Configuration;
using CID.Execution.Support.PackageRegistration.Configuration;

namespace CID.Execution.Controller.Service.Configuration
{
    static class ApplicationConfiguration
    {
        static ApplicationConfiguration()
        {
            PackageRegistrationConfiguration = (PackageRegistrationSection)ConfigurationManager.GetSection(PackageRegistrationSection.SectionName);
            DeploymentInitiationConfiguration = (DeploymentInitiationSection)ConfigurationManager.GetSection(DeploymentInitiationSection.SectionName);
            ControllerServiceHostingAddress = ConfigurationManager.AppSettings["controllerServiceHostingAddress"];
        }

        public static PackageRegistrationSection PackageRegistrationConfiguration { get; private set; }

        public static DeploymentInitiationSection DeploymentInitiationConfiguration { get; private set; }

        public static string ControllerServiceHostingAddress { get; private set; }
    }
}
